import {LANG_LOCAL_TYPE} from "~/common/constants";
import langCommonData from "~/lang/lang-common";
export function getLangType () {
  // todo server 端处理
  let lType:string = 'zh'
  if (process.client) {
    lType = localStorage.getItem(LANG_LOCAL_TYPE) || 'zh'
  }
  return lType
}
export function getLangCommonData(key:string) {
  const nowType = getLangType()
  return langCommonData[nowType][key]
}
